IF NOT EXISTS(SELECT [Name] FROM syscolumns WHERE Name = 'IsPrinted' AND ID = OBJECT_ID('dbo.Bill')) BEGIN
   ALTER TABLE Bill ADD IsPrinted BIT CONSTRAINT [rdf_Bill_IsPrinted] DEFAULT (0)
   EXEC ('UPDATE Bill SET IsPrinted = 0')
END